﻿package {	import flash.display.MovieClip;	//import flash.display.DisplayObject;	public class thermometer extends MovieClip {				public function thermometer():void		{			this.fill_mask_mc.visible = false;						this.inner_mc.cacheAsBitmap = true;						this.fill_mask_mc.cacheAsBitmap = true;						this.inner_mc.mask = this.fill_mask_mc;		}				public function setValues(Max:Number,Current:Number):Boolean {			var Fill:Number = new Number();			Fill = Current/Max;			if ( Fill >= 0 ) {								this.fill_mask_mc.scaleY = Fill;				this.tick_mc.money_txt.text = Current.toString();				this.tick_mc.y = this.fill_mask_mc.y - this.fill_mask_mc.height				return true;			} else {				return false;			}		}	}}